package cn.valo.system.mapper;

import cn.valo.system.domain.Permission;
import cn.valo.basic.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author valo
 * @since 2022-06-22
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    Permission loadBySn(String permissionSn);
    /**
     * 根据当前登录人查询所拥有的按钮权限
     * @param id
     * @return
     */
    List<String> loadPermissionsByLogininfoId(Long id);
}
